package com.face.server.repository;

import com.face.server.entity.Joined;
import org.springframework.data.mongodb.repository.MongoRepository;

import java.util.List;

public interface JoinedRepository extends MongoRepository<Joined, String> {
    List<Joined> findByDormitoryBuildNumInAndTypeIs(List<Integer> buildList,int type);

    Joined findByNameAndDormitoryNumInAndTypeIs(String name,List<Integer> buildList,int type);

    Joined findByNameAndDormitoryBuildNumIsAndTypeIs(String name,int DormitoryBuild,int type);

}
